package com.biz.primus.ms.member.trans;

import com.biz.primus.ms.member.dao.po.MemberFootprint;
import com.biz.primus.ms.member.dao.ro.MemberFootprintRo;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * po转ro
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class MemberFootprintToMemberFootprintRo implements Function<MemberFootprint, MemberFootprintRo>
{
    @Override
    public MemberFootprintRo apply(MemberFootprint po)
    {
        MemberFootprintRo ro = new MemberFootprintRo();
        if (po != null)
        {
            BeanUtils.copyProperties(po, ro);
        }
        return ro;
    }
}
